/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "定价差异分析表",TableName = "cw_djlc_analyze_table")]
    public partial class cw_djlc_analyze_table:BaseEntity
    {
        /// <summary>
       ///差异分析id
       /// </summary>
       [Key]
       [Display(Name ="差异分析id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid cw_djlc_analyze_id { get; set; }

       /// <summary>
       ///定价主表id
       /// </summary>
       [Display(Name ="定价主表id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       public Guid? cw_djlc_djzb_id { get; set; }

       /// <summary>
       ///定价流程编号
       /// </summary>
       [Display(Name ="定价流程编号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string cw_djlc_code { get; set; }

       /// <summary>
       ///物料编号
       /// </summary>
       [Display(Name ="物料编号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string oldcomponentnum { get; set; }

       /// <summary>
       ///对标物料子件数量
       /// </summary>
       [Display(Name ="对标物料子件数量")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       public decimal? oldnum { get; set; }

       /// <summary>
       ///对标物料子件单价
       /// </summary>
       [Display(Name ="对标物料子件单价")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       public decimal? oldUnitprice { get; set; }

       /// <summary>
       ///对标物料子件价格
       /// </summary>
       [Display(Name ="对标物料子件价格")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? oldprice { get; set; }

       /// <summary>
       ///物料描述
       /// </summary>
       [Display(Name ="物料描述")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string olddescription { get; set; }

       /// <summary>
       ///需求物料子件编号
       /// </summary>
       [Display(Name ="需求物料子件编号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string newcomponentnum { get; set; }

       /// <summary>
       ///需求物料子件描述
       /// </summary>
       [Display(Name ="需求物料子件描述")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string newdescription { get; set; }

       /// <summary>
       ///需求物料子件数量
       /// </summary>
       [Display(Name ="需求物料子件数量")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       public decimal? newnum { get; set; }

       /// <summary>
       ///需求物料子件单价
       /// </summary>
       [Display(Name ="需求物料子件单价")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       public decimal? newUnitprice { get; set; }

       /// <summary>
       ///需求物料子件价格
       /// </summary>
       [Display(Name ="需求物料子件价格")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? newprice { get; set; }

       /// <summary>
       ///差异价格
       /// </summary>
       [Display(Name ="差异价格")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? analyzeprice { get; set; }

       /// <summary>
       ///分组编码
       /// </summary>
       [Display(Name ="分组编码")]
       [MaxLength(10)]
       [Column(TypeName="varchar(10)")]
       [Editable(true)]
       public string groupnum { get; set; }

       /// <summary>
       ///分组名称
       /// </summary>
       [Display(Name ="分组名称")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string groupnumname { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ModifyDate { get; set; }

       
    }
}